<?php
    $object = new CastObject();

    echo((int)$object . "\n");
    echo((string)$object . "\n");
    echo((bool)$object . "\n");